package cn.ywang.pattern;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author BeatificWang
 * @date 2019/3/22 21:39
 */
@Configuration
public class MyBeans {

	@Bean
	public Step step() {
		Step step = new Step();
		step.setId(1);
		step.setName("stepName");
		return step;
	}

	@Bean
	public Case testcase(Step step) {
		step.setId(2);
		return new Case(step);
	}
}
